package kr.hkit.powerjava.chapter23;

public class MyThreadTest {

	public static void main(String[] args) {
		Thread t = new MyThread();
		t.start();
		
		Thread t2 = new Thread(new MyRunnable());
		t2.start();
		
		
		for (char ch = 'a'; ch < 'l'; ch++) {
			System.out.print(ch + " ");
			try {
				Thread.sleep(500);//1000이면 1초(0.5초)
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		
		System.out.println("MainThread 종료");		
		
	}
}
